package com.yusheng.tr.common.core.openfeign.base;


import com.yusheng.tr.common.core.openfeign.factory.SysRoleFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

/**
 * @ClassName jiang_jun_qin
 * @date 2023/4/11 15:36
 * @Version 1.0
 */
@FeignClient(value = "school-system",contextId = "sysRoleFeign",fallbackFactory = SysRoleFeignServiceFallback.class)
public interface ISysRoleFeignService {

    @PostMapping(value = "/inner/select/role/permission/by/userId",consumes= MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    Collection<String> selectRolePermissionByUserId(@RequestParam("userId") Long userId);
}
